package com.teradata.olingo.service;

import com.teradata.olingo.entities.ApiKeys;
import com.teradata.olingo.mapper.ApiKeysMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ApiKeysService {
    @Autowired
    private ApiKeysMapper apiKeysMapper;

    public List<ApiKeys> getApiKeys(String apiName){
        return apiKeysMapper.selectByApiName(apiName);
    }

    public List<ApiKeys> getAllApiKeys(){
        return apiKeysMapper.selectAll();
    }

}
